<!--
*Author：jxx
 *Contact：283591387@qq.com
 *代码由框架生成,任何更改都可能导致被代码生成器覆盖
 *业务请在@/extension/system/mytable/Fl_template.js此处编写
 -->
<template>
    <view-grid ref="grid"
               :columns="columns"
               :detail="detail"
               :editFormFields="editFormFields"
               :editFormOptions="editFormOptions"
               :searchFormFields="searchFormFields"
               :searchFormOptions="searchFormOptions"
               :table="table"
               :extend="extend">
    </view-grid>
</template>
<script>
    import extend from "@/extension/mytable/mytable/Fl_template.js";
    import { ref, defineComponent } from "vue";
    export default defineComponent({
        setup() {
            const table = ref({
                key: 'ft_id',
                footer: "Foots",
                cnName: '流程模版',
                name: 'mytable/Fl_template',
                url: "/Fl_template/",
                sortName: "ft_name"
            });
            const editFormFields = ref({"ft_name":""});
            const editFormOptions = ref([[{"title":"流程模板名称","required":true,"field":"ft_name","type":"text"}]]);
            const searchFormFields = ref({"ft_name":""});
            const searchFormOptions = ref([[{"title":"流程模板名称","field":"ft_name","type":"text"}]]);
            const columns = ref([{field:'ft_id',title:'ft_id',type:'guid',width:110,hidden:true,require:true,align:'left'},
                       {field:'ft_name',title:'流程模板名称',type:'string',link:true,width:110,require:true,align:'left',sort:true}]);
            const detail = ref({
                cnName: "流程模版明细",
                table: "Fl_template_list",
                columns: [{field:'ft_list_id',title:'ft_list_id',type:'guid',width:110,hidden:true,require:true,align:'left'},
                       {field:'ft_id',title:'ft_id',type:'guid',width:110,hidden:true,align:'left'},
                       {field:'stepid',title:'当前步骤号',type:'int',bind:{ key:'steplist',data:[]},width:80,edit:{type:'select'},align:'left',sort:true},
                       {field:'nextstepid',title:'下一步骤',type:'int',bind:{ key:'steplist',data:[]},width:80,edit:{type:'select'},align:'left'},
                       {field:'bek',title:'流程起始标识',type:'int',bind:{ key:'flow_b_e',data:[]},width:80,edit:{type:'select'},align:'left'},
                       {field:'roleid',title:'当前处理角色',type:'int',bind:{ key:'tree_roles',data:[]},width:80,edit:{type:'select'},align:'left'},
                       {field:'tj_je',title:'金额(>=)',type:'decimal',width:110,edit:{type:''},align:'left'},
                       {field:'tjsql',title:'条件SQL',type:'string',width:320,edit:{type:'textarea'},align:'left'},
                       {field:'nextroleid',title:'next处理角色',type:'int',bind:{ key:'tree_roles',data:[]},width:80,hidden:true,edit:{type:'cascader'},align:'left'},
                       {field:'pxm',title:'排序码',type:'int',sort:true,width:60,edit:{type:'text'},align:'left'},
                       {field:'remark',title:'说明',type:'string',width:100,edit:{type:'textarea'},align:'left'},
                       {field:'node_attr',title:'节点属性',type:'string',width:110,edit:{type:'text'},align:'left'}],
                sortName: "pxm",
                key: "ft_list_id"
            });
            return {
                table,
                extend,
                editFormFields,
                editFormOptions,
                searchFormFields,
                searchFormOptions,
                columns,
                detail,
            };
        },
    });
</script>
